﻿using EnvDTE;
namespace ClassMetadataBrowser.Domain.Metadata
{
	public class EnumMetdata : MetadataObjectBase
	{
		protected override void CodeElementSet(CodeElement element)
		{
			CodeEnum en = (CodeEnum)element;
			SetAccess(en.Access);
			AttributesCount = en.Attributes == null ? 0 : en.Attributes.Count;
		}

		public override void Accept(IMetadataVisitor visitor)
		{
			visitor.Visit(this);
		}
	}
}
